function pThen() {
  return new Promise((resolve) => {
    resolve('1111')
  }).finally(() => {
    console.log('000')
    return '333'
  })
}

pThen().then((e) => {
  console.log('222', e)
})

// 输出顺序：1.000 2.222 111 